<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<script>
		var person = new Object();
		person.name = '小米';
		person.age = '29';
		person.job = 'student';
		person.sayName = function () {
			alert(this.name);
		}

		/*var person = {
			name: '小米',
			age: '29',
			job: 'student',
			sayName: function () {
				alert(this.name);
			}
		}
		person.sayName();*/
	</script>
</body>
</html>